package exsun.jt808.data.upload_data;

import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;
@Component
public class GpsAlarms {
    public static final Map<Integer, String> map = new HashMap();

    public static final Map<Integer, String> adasMap = new HashMap();

    public  static final  Map<Integer,String> tireMap = new HashMap<>();

    static {
        map.put(GpsAlarmType.Emergency, "紧急报警");
        map.put(GpsAlarmType.OverSpeed, "超速报警");
        map.put(GpsAlarmType.FatigueDriving, "疲劳驾驶");
        map.put(GpsAlarmType.EarlyWarning, "预警");
        map.put(GpsAlarmType.GnssModuleFault, "GNSS 模块发生故障");
        map.put(GpsAlarmType.GnssAntennaLooseOrCutoff, "GNSS 天线未接或被剪断");
        map.put(GpsAlarmType.GnssAntennaCircuit, "GNSS 天线短路");
        map.put(GpsAlarmType.TerminalMainsUndervoltage, "终端主电源欠压");
        map.put(GpsAlarmType.TerminalMainsPoweroff, "终端主电源掉电");
        map.put(GpsAlarmType.TerminalMonitorOrLcDfault, "终端 LCD 或显示器故障");
        map.put(GpsAlarmType.TtsModuleFault, "TTS 模块故障");
        map.put(GpsAlarmType.CameraFault, "摄像头故障");
        map.put(GpsAlarmType.CumulativeDrivingTimeout, "当天累计驾驶超时");
        map.put(GpsAlarmType.OvertimeParking, "超时停车");
        map.put(GpsAlarmType.InOutOfArea, "进出区域");
        map.put(GpsAlarmType.InOutOfLine, "进出路线");
        map.put(GpsAlarmType.DrivingTimeLackOrTooLong, "路段行驶时间不足/过长");
        map.put(GpsAlarmType.RouteDeviation, "路线偏离报警");
        map.put(GpsAlarmType.VehicleVssFault, "车辆 VSS 故障");
        map.put(GpsAlarmType.AbnormalVehicleFuel, "车辆油量异常");
        map.put(GpsAlarmType.VehicleTheft, "车辆被盗");
        map.put(GpsAlarmType.IllegalVehicleIgnition, "车辆非法点火");
        map.put(GpsAlarmType.VehicleIllegalDisplacement, "车辆非法位移");
        map.put(GpsAlarmType.CollisionRollover, "碰撞侧翻报警");
        map.put(GpsAlarmType.AbnormalSdCard, "SD 卡异常");
        map.put(GpsAlarmType.FrontCrash, "前向碰撞报警");
        map.put(GpsAlarmType.LaneDeparture, "车道偏离报警");
        map.put(GpsAlarmType.VehiclesTooClose, "车距过近报警");
        map.put(GpsAlarmType.PedestrianCrash, "行人碰撞报警");
        map.put(GpsAlarmType.FrequentlyChangeLanes, "频繁变道报警");
        map.put(GpsAlarmType.OverLimitOfRoadSigns, "道路标识超限报警");
        map.put(GpsAlarmType.Barrier, "障碍物报警");
        map.put(GpsAlarmType.RoadSignIdentification, "道路标志识别事件");
        map.put(GpsAlarmType.TakeInitiativeToCapture, "主动抓拍事件");
        map.put(GpsAlarmType.AdasFatigueDriving, "Adas疲劳驾驶报警");
        map.put(GpsAlarmType.MakingCalls, "接打电话报警");
        map.put(GpsAlarmType.Smoking, "抽烟报警");
        map.put(GpsAlarmType.DistractedDriving, "分神驾驶报警");
        map.put(GpsAlarmType.DriverAnomaly, "驾驶员异常报警");
        map.put(GpsAlarmType.AutomaticCapture, "自动抓拍事件");
        map.put(GpsAlarmType.DriverChange, "驾驶员变更事件");
        map.put(GpsAlarmType.TyrePressureHigh, "胎压过高报警");
        map.put(GpsAlarmType.TyrePressureLow, "胎压过低报警");
        map.put(GpsAlarmType.TyreTemperatureHigh, "胎温过高报警");
        map.put(GpsAlarmType.SensorAnomaly, "传感器异常报警");
        map.put(GpsAlarmType.TyrePressureUnbalance, "胎压不平衡报警");
        map.put(GpsAlarmType.SlowLeak, "慢漏气报警");
        map.put(GpsAlarmType.LowBattery, "电池电量低报警");
        map.put(GpsAlarmType.CloseBehind, "后方接近报警");
        map.put(GpsAlarmType.LeftSideOfRear, "左侧后方接近报警");
        map.put(GpsAlarmType.RightSideOfRear, "右侧后方接近报警");
        map.put(GpsAlarmType.GuardUnCar, "门禁非户籍车辆");
        map.put(GpsAlarmType.GuardUnline, "门禁不在线");
        map.put(GpsAlarmType.GuardUnRoof, "门禁未密闭");
        map.put(GpsAlarmType.渣土车未密闭报警, "平台计算 未密闭");
        map.put(GpsAlarmType.渣土车超载报警, "平台计算 超载");
        map.put(GpsAlarmType.渣土车正常消纳报警, "渣土车正常消纳报警");
        map.put(GpsAlarmType.渣土车正常出土报警, "渣土车正常出土报警");
        map.put(GpsAlarmType.渣土车可疑消纳报警, "渣土车可疑消纳报警");
        map.put(GpsAlarmType.渣土车可疑出土报警, "渣土车可疑出土报警");
        map.put(GpsAlarmType.渣土车超速报警, "渣土车超速报警");
        map.put(GpsAlarmType.渣土车线路偏移报警, "渣土车线路偏移报警");
        map.put(GpsAlarmType.渣土车进区域报警, "渣土车进区域报警");
        map.put(GpsAlarmType.渣土车出区域报警, "渣土车出区域报警");
        map.put(GpsAlarmType.路段限速报警, "路段限速报警");
        map.put(GpsAlarmType.非法驾驶报警, "非法驾驶报警");
        map.put(GpsAlarmType.非法停车报警, "非法停车报警");
        map.put(GpsAlarmType.车辆未保养报警, "车辆未保养报警");
    }

    static {
        adasMap.put(GpsAlarmType.FrontCrash, "前向碰撞报警");
        adasMap.put(GpsAlarmType.LaneDeparture, "车道偏离报警");
        adasMap.put(GpsAlarmType.VehiclesTooClose, "车距过近报警");
        adasMap.put(GpsAlarmType.PedestrianCrash, "行人碰撞报警");
        adasMap.put(GpsAlarmType.FrequentlyChangeLanes, "频繁变道报警");
        adasMap.put(GpsAlarmType.OverLimitOfRoadSigns, "道路标识超限报警");
        adasMap.put(GpsAlarmType.Barrier, "障碍物报警");
        adasMap.put(GpsAlarmType.RoadSignIdentification, "道路标志识别事件");
        adasMap.put(GpsAlarmType.TakeInitiativeToCapture, "主动抓拍事件");
        adasMap.put(GpsAlarmType.AdasFatigueDriving, "Adas疲劳驾驶报警");
        adasMap.put(GpsAlarmType.MakingCalls, "接打电话报警");
        adasMap.put(GpsAlarmType.Smoking, "抽烟报警");
        adasMap.put(GpsAlarmType.DistractedDriving, "分神驾驶报警");
        adasMap.put(GpsAlarmType.DriverAnomaly, "驾驶员异常报警");
        adasMap.put(GpsAlarmType.AutomaticCapture, "自动抓拍事件");
        adasMap.put(GpsAlarmType.DriverChange, "驾驶员变更事件");
        adasMap.put(GpsAlarmType.CloseBehind, "后方接近报警");
        adasMap.put(GpsAlarmType.LeftSideOfRear, "左侧后方接近报警");
        adasMap.put(GpsAlarmType.RightSideOfRear, "右侧后方接近报警");
        adasMap.put(GpsAlarmType.TireAlarm,"胎压相关报警");
    }

    static
    {
        tireMap.put(GpsAlarmType.TyrePressureHigh, "胎压过高报警");
        tireMap.put(GpsAlarmType.TyrePressureLow, "胎压过低报警");
        tireMap.put(GpsAlarmType.TyreTemperatureHigh, "胎温过高报警");
        tireMap.put(GpsAlarmType.SensorAnomaly, "传感器异常报警");
        tireMap.put(GpsAlarmType.TyrePressureUnbalance, "胎压不平衡报警");
        tireMap.put(GpsAlarmType.SlowLeak, "慢漏气报警");
        tireMap.put(GpsAlarmType.LowBattery, "电池电量低报警");
    }
}
